'''
@project:Tinyshop_t174
@auther:lihanliang
@file:tinyshop_elements.py
@date:2022/11/7 19:11
@dasc:
'''
from selenium.webdriver.common.by import By

input_zh={'element_locator':By.ID,'element_value':'account'}
input_mm={'element_locator':By.NAME,'element_value':'password'}
click_dl={'element_locator':By.XPATH,'element_value':'//button[@class="btn btn-main "]'}

input_yh={'element_locator':By.NAME,'element_value':'name'}
input_mmm={'element_locator':By.NAME,'element_value':'password'}
input_yz={'element_locator':By.NAME,'element_value':'verifyCode'}
click_dll={'element_locator':By.CLASS_NAME,'element_value':'button'}

input_kw={'element_locator':By.ID,'element_value':'search-keyword'}
click_ss={'element_locator':By.XPATH,'element_value':'//button[@class="btn-search "]'}
action_sp={'element_locator':By.XPATH,'element_value':'//*[@id="main"]/div[2]/div/div/div[2]/dl/dd/ul/li[1]'}
click_pd={'element_locator':By.XPATH,'element_value':'//*[@id="main"]/div[2]/div/div/div[2]/dl/dd/ul/li[1]/dl'}
click_k1={'element_locator':By.XPATH,'element_value':'//*[@id="product-intro"]/div[3]/div/dl[1]/dd/ul/li'}
click_k2={'element_locator':By.XPATH,'element_value':'//*[@id="product-intro"]/div[3]/div/dl[2]/dd/ul/li[1]/span'}
click_ct={'element_locator':By.ID,'element_value':'add-cart'}
action_sc={'element_locator':By.ID,'element_value':'shopping-cart'}
click_js1={'element_locator':By.XPATH,'element_value':'//*[@id="shopping-cart"]/div/div/a'}
click_js2={'element_locator':By.XPATH,'element_value':'//*[@id="main"]/div[2]/div[2]/p/a[2]'}
click_tj={'element_locator':By.XPATH,'element_value':'//input[@class="btn btn-main fr"]'}
click_zf={'element_locator':By.XPATH,'element_value':'//input[@class="btn btn-main"]'}
click_bn={'element_locator':By.ID,'element_value':'buy-now'}

action_center={'element_locator':By.XPATH,'element_value':'//*[@id="header"]/div[1]/div/div[2]/ul/li[1]/a'}
click_sh={'element_locator':By.XPATH,'element_value':'//*[@id="header"]/div[1]/div/div[2]/ul/li[1]/div/ul/li[6]/a'}
click_ao={'element_locator':By.ID,'element_value':'address_other'}
i_frame={'element_locator':By.XPATH,'element_value':'//iframe[starts-with(@name,"OpenartDialog")]'}
click_zip1={'element_locator':By.XPATH,'element_value':'//option[@value=430000]'}
click_zip2={'element_locator':By.XPATH,'element_value':'//option[@value=430100]'}
click_zip3={'element_locator':By.XPATH,'element_value':'//option[@value=430105]'}
input_zip={'element_locator':By.NAME,'element_value':'zip'}
input_addr={'element_locator':By.NAME,'element_value':'addr'}
input_an={'element_locator':By.NAME,'element_value':'accept_name'}
input_mobile={'element_locator':By.NAME,'element_value':'mobile'}
input_phone={'element_locator':By.NAME,'element_value':'phone'}
click_dz={'element_locator':By.XPATH,'element_value':'//input[@class="btn"]'}

click_yx={'element_locator':By.XPATH,'element_value':'//a[@href="/tinyshop/index.php?con=marketing&act=prom_goods_list"]'}
click_qg={'element_locator':By.XPATH,'element_value':'//a[@href="/tinyshop/index.php?con=marketing&act=flash_sale_list"]'}
click_cxtj={'element_locator':By.XPATH,'element_value':'//a[@href="/tinyshop/index.php?con=marketing&act=flash_sale_edit"]'}
input_name={'element_locator':By.NAME,'element_value':'title'}
click_xzsp={'element_locator':By.XPATH,'element_value':'//a[@class="button"]'}
i_framee={'element_locator':By.NAME,'element_value':'Opengoods_select'}
click_spxh={'element_locator':By.XPATH,'element_value':'//input[@value="41"]'}
click_xd={'element_locator':By.XPATH,'element_value':'//button[@class="button"]'}
input_qgsl={'element_locator':By.NAME,'element_value':'max_num'}
input_xgsl={'element_locator':By.NAME,'element_value':'quota_num'}
input_xgjg={'element_locator':By.NAME,'element_value':'price'}
input_start={'element_locator':By.NAME,'element_value':'start_time'}
input_end={'element_locator':By.NAME,'element_value':'end_time'}
click_qgtj={'element_locator':By.XPATH,'element_value':'//input[@class="button"]'}

click_sp={'element_locator':By.XPATH,'element_value':'//a[@href="/tinyshop/index.php?con=goods&act=goods_list"]'}
click_sptj={'element_locator':By.CLASS_NAME,'element_value':'icon-plus'}
click_fl={'element_locator':By.ID,'element_value':'category_id'}
click_flxz={'element_locator':By.XPATH,'element_value':'//*[@id="category_id"]/option[3]'}
click_spmc={'element_locator':By.NAME,'element_value':'name'}
click_spbh={'element_locator':By.NAME,'element_value':'goods_no'}
click_tjtp={'element_locator':By.XPATH,'element_value':'//*[@id="obj_form"]/div[1]/div[1]/dl[10]/dd/button'}
click_tp={'element_locator':By.NAME,'element_value':'Openupimg_dialog'}
click_tktp={'element_locator':By.XPATH,'element_value':'//li[text()="图库图片"]'}
click_xztp={'element_locator':By.XPATH,'element_value':'//img[@data-src="data/uploads/2014/04/29/7a18d229142972a45f19d34dd1bbc3bb.jpg"]'}
click_bctp={'element_locator':By.CLASS_NAME,'element_value':'button'}
click_kc={'element_locator':By.NAME,'element_value':'store_nums'}
click_lsj={'element_locator':By.NAME,'element_value':'sell_price'}
click_scj={'element_locator':By.NAME,'element_value':'market_price'}
click_tjtj={'element_locator':By.CLASS_NAME,'element_value':'focus_button'}

click_kh={'element_locator':By.XPATH,'element_value':'//a[@href="/tinyshop/index.php?con=customer&act=customer_list"]'}
click_khtj={'element_locator':By.XPATH,'element_value':'//a[@href="/tinyshop/index.php?con=customer&act=customer_edit"]'}
input_yhm={'element_locator':By.NAME,'element_value':'name'}
input_pw={'element_locator':By.NAME,'element_value':'password'}
input_repw={'element_locator':By.NAME,'element_value':'repassword'}
input_email={'element_locator':By.NAME,'element_value':'email'}
input_rn={'element_locator':By.NAME,'element_value':'real_name'}
input_bd={'element_locator':By.NAME,'element_value':'birthday'}
click_zip11={'element_locator':By.XPATH,'element_value':'//option[@value=430000]'}
click_zip22={'element_locator':By.XPATH,'element_value':'//option[@value=430100]'}
click_zip33={'element_locator':By.XPATH,'element_value':'//option[@value=430105]'}
click_hytj={'element_locator':By.XPATH,'element_value':'//*[@id="obj_form"]/form/div/input[1]'}